﻿<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Forum.Web.Admin.templates._default" %>
<%@ Register assembly="Public.Control" namespace="Public.Control" tagprefix="cc1" %>

<html>
<head id="Head1" runat="server">
    <title></title>
<link href="../styles/control.css" type="text/css" rel="stylesheet" />
    <link href="../styles/dntmanager.css" rel="stylesheet" type="text/css" />
    <link href="../styles/modelpopup.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
#td_l {
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: dashed;
	border-left-style: dashed;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
}
#templates_img {
	border: 1px solid #CCCCCC;
}
-->
    </style>
</head>
<script src="../js/public.js" type="text/javascript"></script>
<script src="../js/common.js" type="text/javascript"></script>
<script src="../js/modalpopup.js" type="text/javascript"></script>
<body  class="ContentBody">
<form id="form2" runat="server">
<cc1:Hint ID="Hint1" runat="server" HintImageUrl="../" />
<div class="ManagerForm">
		<fieldset>
		    <legend style="background:url(../images/icons/icon18.jpg) no-repeat 6px 50%;">界面与显示方式设置</legend>

        
            <div class="MainDiv">              <br>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100" height="40" valign="top">默认模板风格:</td>
      <td width="400" valign="top">
          <select id="Select1" name="D1" runat="server" onChange="showimg(this.value);">
              <option></option>
          </select>
          &nbsp;(设置后本系统将使用此模板)</td>
      <td width="100" valign="top">选择模板预览:</td>
      <td height="250" valign="top"><img src="../images/ad_show_temp.gif" name="templates_img" width="300" height="200" border="0" id="templates_img"></td>
    </tr>
    <tr>
      <td height="20">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="40">&nbsp;</td>
      <td>
          <cc1:Button ID="Button1" runat="server" ButtonImgUrl="../images/submit.gif"  
              AutoPostBack="False" ScriptContent="savexml()"  />                            </td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>
	</fieldset>
        <div class="Navbutton" style="display:none;">
<script type="text/javascript">
function savexml()
{
    var tid=hbctl_.$("Select1").value;
    var rvalue=Forum.Web.Admin.templates._default.SaveXML(tid).value;
    window.location="default.aspx";
}
function showimg(tid)
{
    var rvalue=Forum.Web.Admin.templates._default.GetTemplatesImg(tid).value;
    hbctl_.$("templates_img").src=rvalue;
}
showimg(hbctl_.$("Select1").value);
</script>
        </div>
        </div>
    <cc1:Hint ID="Hint2" runat="server" />
    </form>
    </body>
</html>